﻿<%@ Page CodeFileBaseClass="AliCMS.Lib.AdminPageBase" %>
<ali:List ID="Menu" Object="Template.Menu" Operation="AuthorizedList(Convert.ToString(Channel[TemplatePath]), Convert.ToInt32(Request.QueryString['ParentID']))" Lang="PageLang"/>
<section data-page="nav">
	<ali:List Object="Template.Menu" Source="Menu" Condition="ParentID='00000000-0000-0000-0000-000000000000'">
		<ul class="ali-tree">
			<ali:Record>
				<li>
					<%If Convert.ToString(Target) == ""%>
						<a href="<%=URL%>" target="ali-navtab"><%=Name%></a>
					<%Else%>
						<a href="<%=URL%>" target="<%=Target%>"><%=Name%></a>
					<%EndIf%>

					<ali:List Object="Template.Menu" Source="Menu" Condition="ParentID=ID">
						<ul style="display:none">
							<ali:Record>
								<%If Convert.ToString(Target) == ""%>
									<li><a href="<%=URL%>" target="ali-navtab"><%=Name%></a></li>
								<%Else%>
									<li><a href="<%=URL%>" target="<%=Target%>"><%=Name%></a></li>
								<%EndIf%>
							</ali:Record>
						</ul>
					</ali:List>
				</li>
			</ali:Record>
		</ul>
	</ali:List>
</section>